package com.eatme.core.hash;

import java.util.HashMap;
import java.util.HashSet;

public class HashCode {
    public static void main(String[] args) {
        int a = 42;
        System.out.println(((Integer) a).hashCode());
        int b = -42;
        System.out.println(((Integer) b).hashCode());
        double c = 3.1415926;
        System.out.println(((Double) c).hashCode());
        String d = "dongkang";
        System.out.println(d.hashCode());

        HashSet<Student> set =new HashSet<>();
        Student student = new Student(3,2,"bobo","Liu");
        set.add(student);
        HashMap<Student,Integer> scores = new HashMap<>();
        scores.put(student,100);
    }
}
